<?php

namespace Database\Factories;

use App\Models\Member;
use Illuminate\Database\Eloquent\Factories\Factory;

class MemberFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Member::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'nick_name' => $this->faker->name(),
            'avatar' => url('/static/images/default_avatar.jpeg'),
            'gender' => mt_rand(0, 1),
            'country' => '中国',
            'province' => '某某省',
            'city' => $this->faker->city
        ];
    }
}
